package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.impl.EmployeeQuery;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IEmployeeService {
//当前的项目中因为顾客与员工存在着外间关联所以不设置删除功能
    void saveOrUpdate(Employee record);

    Employee get(Long id);

    Employee getByUsername(String name);

    PageResult query(EmployeeQuery qo );

    void changeState(Long id);

    void rsetPassword(Long id,String s);

    List<Employee> selectAll();

    List<Long> getRoleIdByEmployeeId(Long id);

}
